package com.gimi.test_jpa.com.gimi.aop;

public class TransCacheInfoUtil {

    private static ThreadLocal<Boolean> resultInterceptor = new ThreadLocal<Boolean>();

    public static Boolean isResultInterceptor() {
        return resultInterceptor.get() == null ? false : resultInterceptor.get();
    }

    public static void setResultInterceptor(Boolean isInterceptor) {
        resultInterceptor.set(isInterceptor);
    }
}
